﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: LogEntity.cs
// 修改时间：2020-9-8 10:40:04
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：Log 的实体类.
	/// </summary>
	[Table("Log")]
	public partial class LogEntity
	{
		#region Properties
		private int? _logID = 0;
		/// <summary>
		/// 日志记录ID(主键)(自增长)
		/// </summary>
		[Column("LogID",TypeName="int")]
		[Key]
		[MyFlag("Identity")]
		public int? LogID
		{
			get {return _logID;}
			set {_logID = value;}
		}
		
		private int? _category = 0;
		/// <summary>
		/// 分类
		/// </summary>
		[Column("Category",TypeName="int")]
		public int? Category
		{
			get {return _category;}
			set {_category = value;}
		}
		
		private int? _priority = 0;
		/// <summary>
		/// 优先级别
		/// </summary>
		[Column("Priority",TypeName="int")]
		public int? Priority
		{
			get {return _priority;}
			set {_priority = value;}
		}
		
		private System.String _title = string.Empty;
		/// <summary>
		/// 标题
		/// </summary>
		[Column("Title",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Title
		{
			get {return _title;}
			set {_title = value;}
		}
		
		private System.String _message = string.Empty;
		/// <summary>
		/// 内容
		/// </summary>
		[Column("Message",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Message
		{
			get {return _message;}
			set {_message = value;}
		}
		
		private DateTime? _timestamp = null;
		/// <summary>
		/// 记录日期
		/// </summary>
		[Column("Timestamp",TypeName="datetime")]
		public DateTime? Timestamp
		{
			get {return _timestamp;}
			set {_timestamp = value;}
		}
		
		private System.String _userName = string.Empty;
		/// <summary>
		/// 用户名
		/// </summary>
		[Column("UserName",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String UserName
		{
			get {return _userName;}
			set {_userName = value;}
		}
		
		private System.String _userIP = string.Empty;
		/// <summary>
		/// 用户IP
		/// </summary>
		[Column("UserIP",TypeName="nvarchar(20)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String UserIP
		{
			get {return _userIP;}
			set {_userIP = value;}
		}
		
		private System.String _source = string.Empty;
		/// <summary>
		/// StackTrace，TargetSite：异常源，堆栈跟踪，等异常信息
		/// </summary>
		[Column("Source",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Source
		{
			get {return _source;}
			set {_source = value;}
		}
		
		private System.String _scriptName = string.Empty;
		/// <summary>
		/// 页面
		/// </summary>
		[Column("ScriptName",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String ScriptName
		{
			get {return _scriptName;}
			set {_scriptName = value;}
		}
		
		private System.String _postString = string.Empty;
		/// <summary>
		/// 提交信息
		/// </summary>
		[Column("PostString",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String PostString
		{
			get {return _postString;}
			set {_postString = value;}
		}
		
		#endregion
	}
}
